package Ch4;

/**
 * Created by Cai Ye on 2016/3/25.
 */
public class OceanWorld4Submarine extends OceanWorld4Boat implements OceanWorld4Diver {
    public OceanWorld4Submarine(String name) {
        super(name);
    }

    @Override
    public void dive() {
        System.out.printf("潜水艇 %s 潜行%n", name);
    }
}
